package routers

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/golangblogs/gojwt"
	"week53/client/routers/handler"
)

func LoadApiRouter(r *gin.Engine) {
	r.POST("/register", handler.Register)
	r.POST("/login", handler.Login)
	r.Use(jwt.JWTAuth("zj"))
	r.POST("/addClassPlan", handler.AddClassPlan)
	r.POST("/delClassPlan", handler.DelClassPlan)
}
